<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>new Vue()发生了什么，为何狗焕闷闷不乐？</title>
</head>
<body>
<div id="root"></div>
<script src="./index.js"></script>
<script>
new Vue({
  el: '#app',
  data() {
    return {
      msg: '这是文本'
    }
  },
  beforeCreate() {
    console.log('执行beforeCreate生命周期钩子函数')
  },
  created() {
    console.log('执行created生命周期钩子函数')
  }
})
</script>
</body>
</html>